package cn.yeyu.org.service;

import cn.yeyu.basic.util.PageList;
import cn.yeyu.org.domain.Department;
import cn.yeyu.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {

    void save();

    void update();

    void delete();
    Department loadById(Long id );

    List<Department> loadAll();

    /**
     * 分页查询
     *
     */
    //查询总条数
    Long queryCount(DepartmentQuery query);
    //查询当前的页数
    PageList<Department> queryData(DepartmentQuery query);

}
